<!DOCTYPE html>
<html>
<body>
<script>
// Make sure this overrides any preset autoplay policy.
internals.settings.setAutoplayPolicy('document-user-activation-required');
internals.settings.autoplayIgnoresWebAudioEnabled = false;

let result = 'failed';

try {
  const ac = new AudioContext();
  result = ac.state;
} catch (e) {
  result = 'creation_failed';
}

top.postMessage(result, '*');
</script>
